object = $(patsubst %.cpp, %.o, $(wildcard *.cpp))

main: $(object)
	g++ -o $@ $(object) -g

%.o : %.cpp
	g++ -c $< -g

clean:
	rm *.o main test *.exe html latex -fr
